import request from '@/utils/request'

// 查询轮播图列表
export function listBannar(query) {
  return request({
    url: '/system/bannar/list',
    method: 'get',
    params: query
  })
}

// 查询轮播图详细
export function getBannar(id) {
  return request({
    url: '/system/bannar/' + id,
    method: 'get'
  })
}

// 新增轮播图
export function addBannar(data) {
  return request({
    url: '/system/bannar',
    method: 'post',
    data: data
  })
}

// 修改轮播图
export function updateBannar(data) {
  return request({
    url: '/system/bannar',
    method: 'put',
    data: data
  })
}

// 删除轮播图
export function delBannar(id) {
  return request({
    url: '/system/bannar/' + id,
    method: 'delete'
  })
}
